//
//  NFirstViewController.m
//  BSLCar
//
//  Created by 孙卓 on 15/5/23.
//  Copyright (c) 2015年 lyz. All rights reserved.
//

#import "NFirstViewController.h"


@interface NFirstViewController ()

@end

@implementation NFirstViewController


- (void)dealloc
{
    [_InterfaceId release];
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"新闻详情";
    
    UIBarButtonItem *item = [[UIBarButtonItem alloc] init];
    item.title = @"返回";
    self.navigationItem.backBarButtonItem = item;
    [item release];
    
    [self downLoadThisPageData];
    
}
- (void)downLoadThisPageData{

    
    webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 1000)];
    //搞一个申请，申请的是这个东西。
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.InterfaceId]];
    [self.view addSubview:webView];
    //不同点就是重新加载的这个东西
    [webView loadRequest:request];
    [webView release];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
